OS=$(shell go env GOOS)
ARCH=$(shell go env GOARCH)
PLATFORM = CGO_ENABLED=0 GOOS=darwin GOARCH=amd64
COMPILE = go build -o $@ $^

.PHONY: clean
all:peerctl

peerctl:main.go cmd.go
	CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) GOARCH= $(COMPILE)

clean:
	rm -f peerctl